package cn.sdack.go.users.service;

import cn.sdack.go.common.entities.users.AuthorityEntity;
import cn.sdack.go.common.entities.users.RoleEntity;
import cn.sdack.go.common.querys.users.RoleQuery;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author sdack
 * @date 2024/1/8
 */
public interface RoleService {

    Page<RoleEntity> queryAll(RoleQuery param,int page, int pageSize) throws Exception;

    RoleEntity getById(Long id) throws Exception;

    RoleEntity add(RoleEntity param) throws Exception;

    RoleEntity set(RoleEntity param) throws Exception;

    RoleEntity del(Long id) throws Exception;

    void authority(Long gid,String key, List<AuthorityEntity> list) throws Exception;


}
